<?php

namespace app\api\validate;

use think\Validate;

class Sticker extends Validate
{
    protected $rule = [
        ['page',                'number|>:0',                   '当前页出错|当前页出错'],
        ['cate_id',             'require|number|>:0',           '请先选择分类|分类错误|分类错误'],
    ];

    protected $scene = [
        'lists'                 => ['page', 'cate_id'],
        'category'              => ['page'],
    ];
}
